<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>26早上回顾</title>

	<script type="text/javascript">
	// 直接使用实例
	// var a=new Object()
	// 	a.xingming="茶图腾";
	// 	a.xingbie="公的",
	// 	a.jiguan=function(){
	// 		alert("天朝");
	// 	}
	// 	// a.jiguan()
	// 	// alert(a.xingming)
	// 	document.write(a.xingbie)

// 使用构造器
	function cai=new Object()
		this.xingming="茶图腾",
		this.xingbie="公的",
		this.jiguan=function(){
			alert("天朝")
		}
		var obj=new cai()
		obj.xingbie()




	</script>
</head>
<body>
	
</body>
</html>